<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>变形、过渡及动画</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
    <script>
        var _hmt = _hmt || [];
        (function() {
          var hm = document.createElement("script");
          hm.src = "https://hm.baidu.com/hm.js?d54f110c773cfc933a9acea59426a0ff";
          var s = document.getElementsByTagName("script")[0]; 
          s.parentNode.insertBefore(hm, s);
        })();
        </script>
        
</head>
<style>
    .box {
        width: 100px;
        height: 100px;
        background-color: aquamarine;
        border-radius: 8px;
        text-align: center;
        line-height: 100px;
        color: rgb(199, 47, 47);
    }

    .flex-container {
        display: flex;
    }

    .box-1 {
        transform: rotate(20deg);

    }

    .box-2 {
        transform: rotate(-55deg);
    }

    .box-3 {
        transform: scale(1.5);
        transition-property: all;
        transition-duration: 0.5;
        transition-timing-function: linear;
    }

    .box-3:hover {
        transform: scale(1);

    }

    .box-4 {
        transform: scale(0.5, 1.5);
    }

    .box-5 {
        transform: translate(20px, 20%);
    }

    .box-7 {
        transform: skew(15deg);
    }

    .box-8 {
        transform: skewY(15deg);
</style>

<body>
    <h1>变形练习</h1>
    <div class="clearfix">
        <h2>旋转</h2>
        <div class="flex-container">
            <div class="original">
                <div class="spin">
                    <figure class="box box-1">Box-1</figure>

                </div>

            </div>
            <div class="original">
                <div class="spin">
                    <figure class="box box-2">Box-2</figure>

                </div>

            </div>
        </div>
    </div>
    <div class="clearfix">
        <h2>缩放</h2>
        <div class="flex-container">
            <div class="original">
                <div class="spin">
                    <figure class="box box-3">Box-3</figure>

                </div>

            </div>
            <div class="original">
                <div class="spin">
                    <figure class="box box-4 ">Box-4</figure>


                </div>

            </div>

        </div>
    </div>
    <div class="clearfix">
        <h2>位移</h2>
        <div class="flex-container">
            <div class="original">
                <div class="spin">
                    <figure class="box box-5">Box-5</figure>

                </div>

            </div>
            <div class="original">
                <div class="spin">
                    <figure class="box box-6">Box-6</figure>

                </div>

            </div>
        </div>
    </div>
    <div class="clearfix">
        <h2>倾斜</h2>
        <div class="flex-container">
            <div class="original">
                <div class="spin">
                    <figure class="box box-7">Box-7</figure>

                </div>

            </div>
            <div class="original">
                <div class="spin">
                    <figure class="box box-8">Box-8</figure>

                </div>

            </div>
        </div>
    </div>
</body>

</html>